<template>
  <div class="national-ai">
    <WujieVue
        width="100%"
        height="100%"
        name="party-app"
        :sync="true"
        :props="appProps"
        :attrs="appAttrs"
        :alive="true"
    />
  </div>
</template>

<script setup>
import { computed } from 'vue';
import { useRoute } from 'vue-router';
import cache from '@/plugins/cache'
import  WujieVue  from 'wujie-vue3';
import {getTenantId, getToken} from "@/utils/auth.js";
const appToken = getToken();
const tenantId = getTenantId();
const sessionObj = cache.session.getJSON('sessionObj');
const appProps = {
  "webToken": appToken,
  "tenantId":tenantId,
  "sessionObj":sessionObj
};
const appAttrs = { "data-custom-attr": "example自定义属性" }; // 自定义属性
</script>

<style scoped>
.national-ai{
  height: 100%;
}
</style>
